package com.mask.im.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mask.im.business.model.dto.AnnouncementDTO;
import com.mask.im.business.model.dto.MailDTO;
import com.mask.im.business.model.entity.AnnouncementDO;
import com.mask.im.business.model.vo.AnnouncementVO;
import com.mask.im.business.common.model.PageResult;
import com.mask.im.business.common.model.RestResponse;

import java.util.List;


/**
 * @author jian
 */
public interface AnnouncementService extends IService<AnnouncementDO> {

	RestResponse<List<AnnouncementDO>> getAnnouncement();

	PageResult<AnnouncementDTO> draftAnnouncement(String title, Integer status);

	RestResponse<String> saveAnnouncement(AnnouncementVO announcementVO);

	PageResult<AnnouncementDTO> publishAnnouncement(String publishDate, String draftTitle);

	RestResponse<String> deleteAnnouncement(Integer id);

	RestResponse<MailDTO> announcementById(Integer id);
}

